msg in
You want to use any()ba.timer(1000,ba.Call(popup, "z",position=poss,random_offset=0.3), True)
t1 = popup("z",position=poss,random_offset=0.3)
ba.timer(1, popup("z",position=poss).autoretain(), True)
RuntimeError: Precondition failed: PyCallable_Check(obj_in)
def recursion(spaz: ba.Node) -> None:
if ...:
popup("Z", spaz.position).autoretain()
ba.timer(1, lambda: recursion(spaz))
(edited)def recursion(spaz: ba.Node) -> None:
if ...:
popup("Z", spaz.position).autoretain()
ba.timer(1, lambda: recursion(spaz))
(edited) // for i in 0..6 {
// for j in i..6 {
// for k in j..6 {
// for l in k..6 {
// for m in l..6 {
// let mut array = [0,0,0,0,0,0];
// array[i] += 1;
// array[j] += 1;
// array[k] += 1;
// array[l] += 1;
// array[m] += 1;
// process(array);
// }
// }
// }
// }
// }
does anyone have any idea how to simplify this? if damage > 999:
for p in ba.getactivity().players:
if p.actor.node:
p.actor.node.is_area_of_interest = False
camera = ba.newnode('spaz')
camera.area_of_interest_radius = 0
camera.style = 'agent'
camera.handlemessage('stand', position[0], position[1], position[2], 0)
if not ba.getactivity().globalsnode.slow_motion:
def switch_motion() -> None:
ba.getactivity().globalsnode.slow_motion ^= True
switch_motion()
ba.timer(2.0, switch_motion)
def reset() -> None:
for p in ba.getactivity().players:
p.actor.node.is_area_of_interest = True
camera.delete()
ba.timer(2.0, reset)
if damage > 999:
for p in ba.getactivity().players:
if p.actor.node:
p.actor.node.is_area_of_interest = False
camera = ba.newnode('spaz')
camera.area_of_interest_radius = 0
camera.style = 'agent'
camera.handlemessage('stand', position[0], position[1], position[2], 0)
if not ba.getactivity().globalsnode.slow_motion:
def switch_motion() -> None:
ba.getactivity().globalsnode.slow_motion ^= True
switch_motion()
ba.timer(2.0, switch_motion)
def reset() -> None:
for p in ba.getactivity().players:
p.actor.node.is_area_of_interest = True
camera.delete()
ba.timer(2.0, reset)
if damage > 999:
for p in ba.getactivity().players:
if p.actor.node:
p.actor.node.is_area_of_interest = False
camera = ba.newnode('spaz')
camera.area_of_interest_radius = 0
camera.style = 'agent'
camera.handlemessage('stand', msg.pos[0], msg.pos[1], msg.pos[2], 0)
if not ba.getactivity().globalsnode.slow_motion:
def switch_motion() -> None:
ba.getactivity().globalsnode.slow_motion ^= True
switch_motion()
ba.timer(2.0, switch_motion)
def reset() -> None:
for p in ba.getactivity().players:
if p.actor.node:
p.actor.node.is_area_of_interest = True
camera.delete()
ba.timer(2.0, reset)
`__pycahce__
dirs (edited)len()
be used for dicts?T>